package cn.edu.uestc.pojo;

import org.springframework.data.mongodb.core.mapping.Document;

@Document(collection="products")
public class Product {
    private String productName;
    private String shopName;
    private int productNum;

    public Product() {}
    public Product(String productName, String shopName, int productNum) {
        this.productName = productName;
        this.shopName = shopName;
        this.productNum = productNum;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getShopName() {
        return shopName;
    }

    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    public int getProductNum() {
        return productNum;
    }

    public void setProductNum(int productNum) {
        this.productNum = productNum;
    }

    @Override
    public String toString() {
        return "Product{" +
                "productName='" + productName + '\'' +
                ", shopName='" + shopName + '\'' +
                ", productNum=" + productNum +
                '}';
    }
}
